<template>

	<view class="container">

		<!-- 头部背景渐变 -->
		<view class="headBack"></view>

		<!-- 顶部头像及分享码区域 -->
		<view class="info_Content">
			<view class="personInfo" @click="modifyInfo">
				<view class="portrait">
					<image :src="wxUserInfo.wxUserAvatar" mode="aspectFill"></image>
				</view>

				<view class="nameAndStatus">
					<view class="name">
						{{wxUserInfo.wxUsername}}
					</view>
					<!-- 后面根据用户状态进行动态渲染 -->
					<view class="status  normalUser" v-if="wxUserInfo.wxUserStatus===0&&loginStatus===1">
						普通用户
					</view>
					<view class="status  serviceProvider" v-if="wxUserInfo.wxUserStatus===1&&loginStatus===1">
						云集服务商
					</view>
					<view class="status  districtLevel" v-if="wxUserInfo.wxUserStatus===2&&loginStatus===1">
						区县级服务商
					</view>
				</view>

			</view>
			<view class="shareCode" @click="showShareCode()">
				<view class="codeImg">

				</view>
				<text>分享码</text>
			</view>
		</view>


		<!-- 二维码 -->
		<view class="codeCard" v-if="showCodeStatus">
			<view class="codeContent">
				<image :src="qrCodeUrl" mode="aspectFit"></image>
			</view>
			<!-- 隐藏的Canvas -->
			<canvas canvas-id="myCanvas" id="myCanvas" style="width: 590rpx;
			height: 1022rpx;"></canvas>

			<!-- 操作按钮 -->
			<view class="close" v-if="showCodeStatus" @click="closeCodePoster()">
				关闭
			</view>
			<view class="save" v-if="showCodeStatus" @click="savePosterToAlbum()">
				保存至相册
			</view>
		</view>





		<!-- 订单状态区域状态 -->
		<view class="orderStatus_List">
			<view class="orderItem" @click="toOrderList(0)">
				<view class="iconContent item1">

				</view>
				<view class="text">
					我的订单
				</view>
			</view>
			<view class="orderItem" @click="toOrderList(1)">
				<view class="iconContent item2">

				</view>
				<view class="text">
					待付款
				</view>
			</view>
			<view class="orderItem" @click="toOrderList(2)">
				<view class="iconContent item3">

				</view>
				<view class="text">
					待发货
				</view>
			</view>
			<view class="orderItem" @click="toOrderList(3)">
				<view class="iconContent item4">

				</view>
				<view class="text">
					待收货
				</view>
			</view>
		</view>

		<!-- 服务商状态板块 -->
		<view class="service_content">

			<!-- 下面的区域都要根据后期用户状态进行渲染 -->
			<view class="status_1" v-if="menuStatus===0" @click="toCertify()">
				<view class="toBe">
					成为服务商
				</view>
				<view class="rightsTitle">
					享受商城进货折扣等特殊权益
				</view>
				<view class="rightsDetail">
					进货折扣+舌诊检测无限次数
				</view>
				<view class="goVerify">
					去认证
				</view>
			</view>


			<!-- 状态2 -->
			<view v-if="menuStatus==1" @click="toCertify()">
				<certifyProgress :applyStatus="serverUserAccessStatus" :isChoose="isChoose" :status1="status_1"
					:status2="status_2" :status3="status_3" :status4="status_4" :color="'rgba(255, 255, 255, 1)'">
				</certifyProgress>
			</view>

			<!-- 状态三 -->
			<view class="status_3" v-if="menuStatus==2">
				<view class="personStore" @click="toCloudStore()">
					<view class="img item1">

					</view>
					<view class="Info">
						<view class="title">
							我的云仓
						</view>
						<view class="detail">
							{{cloudWarehouseAllStock}}件
						</view>
					</view>
				</view>

				<view class="personComission" @click="toPersonComission()">
					<view class="img item2">

					</view>
					<view class="Info">
						<view class="title">
							我的佣金
						</view>
						<view class="detail">
							￥{{serverKickbackRemainAmount}}
						</view>
					</view>
				</view>
			</view>

		</view>

		<!-- 导航栏区域 -->
		<view class="navigatorList">
			<view class="navigatorItem" @click="toFriendPage()">
				<view class="navInfo">
					<view class="iconContent item1">
					</view>
					<view class="desc">
						我的好友
					</view>
				</view>
				<view class="navArrow">
					<uni-icons type="right" size="15"></uni-icons>
				</view>
			</view>

			<view class="navigatorItem" @click="Goto()">
				<view class="navInfo">
					<view class="iconContent item2">
					</view>
					<view class="desc">
						检测记录
					</view>
				</view>
				<view class="navArrow">
					<uni-icons type="right" size="15"></uni-icons>
				</view>


			</view>
			<view class="navigatorItem" @click="toAddressPage()">
				<view class="navInfo">
					<view class="iconContent item3">
					</view>
					<view class="desc">
						我的地址
					</view>
				</view>
				<view class="navArrow">
					<uni-icons type="right" size="15"></uni-icons>
				</view>
			</view>

			<view class="navigatorItem" @click="toSetPage()">
				<view class="navInfo">
					<view class="iconContent item4">
					</view>
					<view class="desc">
						设置
					</view>
				</view>
				<view class="navArrow">

					<uni-icons type="right" size="15"></uni-icons>
				</view>
			</view>


		</view>

		<!-- 遮罩层 -->
		<view @click="closeMask()">
			<popMask :isShow="showCodeStatus"></popMask>
		</view>

	</view>



</template>

<script>
	import certifyProgress from '@/components/ServiceCertify/certifyProgress.vue'
	import popMask from '@/components/popMask.vue'
	import * as userInfoApi from '@/api/my/my.js'
	import * as serviceStatusApi from '@/api/serviceStatus/serviceStatus.js'
	export default {
		components: {
			popMask,
			certifyProgress
		},
		data() {
			return {
				wxid: null, //微信id
				// 登录状态默认为0
				loginStatus: 0,
				// 用户昵称默认文字
				//模块显示状态
				// 营业执照的审核状态（0为营业执照待上传，1为营业执照待审核，2为营业执照审核通过进入待选货，-2为营业执照审核不通过，3为待上传打款凭证，4为打款凭证审核中，-5为打款凭证审核不通过，5为已成为服务商）
				serverUserAccessStatus: null,
				wxUserInfo: {
					wxUserAvatar: '',
					wxUsername: '点击登录',
					wxUserSex: '',
					wxUserAge: '',
					wxUserTel: '',
					//用户标签状态 0 表示普通用户 1 表示云集服务商 2表示区县服务商
					wxUserStatus: ''
				},
				posterUrl: 'https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/%E4%BA%8C%E7%BB%B4%E7%A0%81.png', // 海报背景图URL
				qrCodeUrl: '', // 二维码图片URL
				canvasId: 'myCanvas', // Canvas的ID
				showCodeStatus: false,
				cloudWarehouseAllStock: 0,
				serverKickbackRemainAmount: 0,
				//状态条的不同状态显示的文字
				isChoose: '已选',
				status_1: '选择',
				status_2: '上传',
				status_3: '下单',
				status_4: '上传'

			};
		},
		computed: {
			// 根据返回的服务商申请状态来判定相应菜单的显示
			menuStatus() {
				if (this.loginStatus === 1) {
					if (this.serverUserAccessStatus === -1) {
						return 0;
					} else if (this.serverUserAccessStatus === 5) {
						return 2;
					} else if (this.serverUserAccessStatus === 0 || this.serverUserAccessStatus === 1 || this
						.serverUserAccessStatus === 2 || this.serverUserAccessStatus === -2 || this
						.serverUserAccessStatus === 3 || this.serverUserAccessStatus === 4 || this
						.serverUserAccessStatus === -4 || this.serverUserAccessStatus === -5) {
						console.log('触发')
						return 1;
					}
				} else {
					return 0;
				}

			}
		},
		onLoad() {
			const token = uni.getStorageSync('token') || null;
			if (token) {
				this.getQRCode();
			} else {
				this.resetData();
			}
		},
		// 因为涉及登录和退出也存在头像或者昵称的修改所以把获取信息的逻辑放到onShow
		onShow() {
			const token = uni.getStorageSync('token') || null;
			if (token) {
				this.resetData();
				this.loginStatus = 1;
				this.getUserInfo();
				this.getServiceInfo();
				this.getQRCode();
				// this.wxUserInfo.wxUsername= '点击登录',
			} else {
				this.loginStatus = 0;
				this.resetData();
			}


		},
		methods: {
			applyStatusText(type) {
				if (type === 1) {
					return this.$globalData.status_1
				} else if (type === 2) {
					return this.$globalData.status_2
				} else if (type === 3) {
					return this.$globalData.status_2
				} else if (type === 4) {
					return this.$globalData.status_3
				}
			},

			//关闭遮罩层
			closeMask() {
				this.showCodeStatus = false;
			},

			//回到历史记录
			Goto() {
				const token = uni.getStorageSync('token') || null;
				if (token) {
					uni.$toPage('/subpkg/AIdiagnos/DetectionRecord/DetectionRecord', {
						wxid: this.wxid
					})
				} else {
					uni.$showMsg('请先登录')
					uni.$toPage('/subpkg/login/login')
				}

			},
			// 若没登录出现在个人页应该对数据重置
			resetData() {
				Object.assign(this.$data, this.$options.data.call(this));
			},

			//获取个人信息
			async getUserInfo() {
				const res = await userInfoApi.getInfo();
				const responseInfo = res.data.data;
				if (res.data.code != 200) {
					return uni.$showMsg('获取用户信息失败');
				}
				// this.resetData();
				// this.loginStatus = 1;
				Object.keys(responseInfo).forEach(key => {
					if (key in this.wxUserInfo) {
						this.wxUserInfo[key] = responseInfo[key];
					}
				});


				console.log(res)
				this.wxid = res.data.data.id
			},

			// 获取服务商信息,以此决定展示相应的菜单
			//获取服务商状态
			async getServiceInfo() {
				const res = await serviceStatusApi.getServerUserInfo();
				if (res.data.code == 200) {
					let resData = res.data.data;
					this.serverUserAccessStatus = resData.serverUserAccessStatus;
					this.$globalData.userType = resData.serverUserStatus;
					if (this.serverUserAccessStatus === 5) {
						this.cloudWarehouseAllStock = resData.cloudWarehouseAllStock;
						this.serverKickbackRemainAmount = resData.serverKickbackRemainAmount;
					}
					if (this.serverUserAccessStatus !== 0) {

						this.status_2 = '已上传'
						if (this.serverUserAccessStatus === 3 || this.serverUserAccessStatus === 4 || this
							.serverUserAccessStatus === -5 || this.serverUserAccessStatus === 5) {
							this.status_3 = '已下单'
							if (this.serverUserAccessStatus !== 3) {
								this.status_4 = '已上传'
							}
						}


					}

					if (resData.serverUserStatus === 1) {
						this.status_1 = '云集服务商'
						this.isChoose = '已选'

					} else if (resData.serverUserStatus === 2) {
						this.status_1 = '区县级服务商'
						this.isChoose = '已选'
					}



				} else {
					this.serverUserAccessStatus = -1;
				}
				console.log(this.serverUserAccessStatus);
				console.log("服务商状态");
				console.log(res)

			},




			//修改个人信息的函数
			modifyInfo() {
				console.log("切换信息")
				console.log(this.loginStatus)
				if (this.loginStatus == 0) {
					uni.$showMsg('请先登录')
					uni.$toPage('/subpkg/login/login')

				} else {
					uni.$toPage('/subpkg/ServiceProvider/personInfo/personInfo')
				}

			},


			//点击去认证
			toCertify() {
				const token = uni.getStorageSync('token') || null;
				if (token) {
					uni.$toPage('/subpkg/ServiceProvider/ServiceCertify/ServiceCertify')
				} else {
					return uni.$showMsg('请先登录')
				}

			},




			//跳转到订单列表

			toOrderList(type) {
				if (this.loginStatus == 0) {
					uni.$showMsg('请先登录')
					uni.$toPage('/subpkg/login/login')

				} else {
					uni.$toPage('/subpkg/shoppingMall/order_list/order_list', {
						orderType: type
					});
				}

			},

			//跳转到好友列表
			toFriendPage() {
				if (this.loginStatus == 0) {
					uni.$showMsg('请先登录')
					uni.$toPage('/subpkg/login/login')

				} else {
					uni.$toPage('/subpkg/ServiceProvider/friendList/friendList');
				}

			},

			//跳转地址页面
			toAddressPage() {
				if (this.loginStatus == 0) {
					uni.$showMsg('请先登录')
					uni.$toPage('/subpkg/login/login')

				} else {
					uni.$toPage('/subpkg/shoppingMall/addressList/addressList');

				}

			},

			//跳转设置页面
			toSetPage() {
				uni.$toPage('/subpkg/ServiceProvider/setPage/setPage');
			},

			// 跳转云仓
			toCloudStore() {
				uni.$toPage('/subpkg/ServiceProvider/cloudStore/cloudStore', {
					wxUserInfo: this.wxUserInfo,
					cloudWarehouseAllStock: this.cloudWarehouseAllStock

				});
			},



			// 跳转佣金
			toPersonComission() {
				uni.$toPage('/subpkg/ServiceProvider/commission/commission');
			},


			// 点击展示分享码
			async showShareCode() {
				if (this.loginStatus == 0) {
					return uni.$showMsg('请先登录')
				}
				this.showCodeStatus = true;




			},

			//点击关闭二维码
			closeCodePoster() {
				this.showCodeStatus = false;
			},
			//生成二维码部分的代码
			async getQRCode() {
				// 假设您已经有了获取二维码的函数
				const res = await userInfoApi.getCode();
				console.log("二维码信息")
				console.log(res.data.data)
				if (res.data.code === 200) {
					this.qrCodeUrl = res.data.data
				}


			},

			drawPoster(callback) {
				const ctx = uni.createCanvasContext(this.canvasId, this);
				const systemInfo = uni.getSystemInfoSync();
				const scale = systemInfo.windowWidth / 750; // 比例

				// 背景图和二维码的尺寸
				const canvasWidth = 590 * scale;
				const canvasHeight = 1022 * scale;
				const qrCodeSize = 360 * scale;

				// 加载并绘制背景图
				uni.getImageInfo({
					src: this.posterUrl,
					success: (bgRes) => {
						ctx.drawImage(bgRes.path, 0, 0, canvasWidth, canvasHeight);

						// 加载并绘制二维码
						uni.getImageInfo({
							src: this.qrCodeUrl,
							success: (qrRes) => {
								ctx.drawImage(qrRes.path, 116 * scale, 408 * scale, qrCodeSize,
									qrCodeSize);
								ctx.draw(false, () => {
									// 图片加载并绘制完成后的回调
									if (callback) callback();
								});
							}
						});
					}
				});
			},


			// 保存海报到相册
			savePosterToAlbum() {
				this.drawPoster(() => {
					console.log("触发保存相册")
					uni.canvasToTempFilePath({
						canvasId: this.canvasId,
						success: (res) => {
							uni.saveImageToPhotosAlbum({
								filePath: res.tempFilePath,
								success: () => {
									uni.showToast({
										title: '保存成功'
									});
									this.closeCodePoster()
								},
								fail: () => {
									uni.showToast({
										title: '保存失败',
										icon: 'none'
									});
									this.closeCodePoster()
								}
							});
						},
						fail: () => {
							uni.showToast({
								title: '生成图片失败',
								icon: 'none'
							});
							this.closeCodePoster()
						}
					}, this);

				});


			}




		}

	}
</script>

<style lang="scss">
	page {
		background-color: #f3f3f5;

	}

	page::-webkit-scrollbar {
		display: none;
	}

	// styles.scss  

	// 设置容器的基本样式  



	.container {

		margin: 0;
		padding: 0;
		padding-bottom: 30rpx;
		width: 100vw;
		// height: 100vh;
		margin-top: 170rpx;
		display: flex;

		align-items: center;
		flex-direction: column;
		overflow-y: scroll;
		overflow-x: hidden;

		// 渐变背景
		.headBack {
			z-index: -1;
			position: absolute;
			top: 0;
			left: 0;
			width: 100vw;
			height: 100vh;
			opacity: 1;
			background: linear-gradient(125.77deg, rgba(212, 187, 157, 0.41) 0%, rgba(255, 255, 255, 0) 100%);
			filter: blur(200rpx);
			overflow: hidden;


		}

		// 顶部头像及分享码区域的样式
		.info_Content {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 40rpx;
			width: calc(100% - 120rpx);
			overflow-x: hidden;


			.personInfo {
				display: flex;
				align-items: center;

				.portrait {
					z-index: 9999;
					border: solid 1rpx lightgray;
					width: 120rpx;
					height: 120rpx;
					border-radius: 50%;
					overflow: hidden;

					image {
						width: 100%;
						height: 100%;
						object-fit: cover;
					}
				}

				.nameAndStatus {
					margin-left: 40rpx;

					.name {
						font-size: 40rpx;
						font-weight: 500;
					}

					.status {
						margin-top: 12rpx;
						display: flex;
						justify-content: center;
						align-items: center;
						font-size: 20rpx;
						border-radius: 8rpx;
						width: 140rpx;
						height: 36rpx;

					}

					.serviceProvider {
						color: rgba(224, 209, 186, 1);
						opacity: 1;
						font-weight: 700;
						background: rgba(212, 48, 48, 1);
					}

					// 区县级服务商的标签样式
					.districtLevel {
						padding: 0 4rpx;
						background: rgba(49, 48, 56, 1);
						opacity: 1;
						font-weight: 700;
						color: rgba(208, 165, 89, 1);

					}

					.normalUser {
						background: rgba(224, 209, 186, 1);
						font-size: 20rpx;
						font-weight: 700;
						letter-spacing: 0rpx;
						line-height: 28.74rpx;
						color: rgba(38, 35, 31, 1);
						text-align: justify;
						vertical-align: top;
					}


				}
			}

			.shareCode {
				box-sizing: border-box;
				display: flex;
				flex-direction: column;
				align-items: center;

				.codeImg {
					background: url('../../static/my/user_icon_QR code_default@2x.png.png');
					background-size: cover;
					box-sizing: border-box;
					width: 42rpx;
					height: 42rpx;

				}

				text {
					font-size: 24rpx;
				}
			}
		}

		//二维码
		.codeCard {
			box-sizing: border-box;
			position: absolute;
			border-radius: 16rpx;
			z-index: 99999999;
			left: 80rpx;
			top: 302rpx;
			width: 590rpx;
			height: 1022rpx;
			background: url('https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/%E4%BA%8C%E7%BB%B4%E7%A0%81.png');
			background-size: cover;

			.codeContent {
				position: absolute;
				left: 116rpx;
				top: 408rpx;
				width: 360rpx;
				height: 360rpx;
				opacity: 1;
				border-radius: 14rpx;
				box-sizing: border-box;
				display: flex;
				align-items: center;
				justify-content: center;

				image {
					margin-top: 0;
					width: 100%;
				}
			}

			//保存相册的按钮
			.close {
				box-sizing: border-box;
				z-index: 999999999;
				position: absolute;
				left: 120rpx;
				bottom: 32rpx;
				font-size: 28rpx;
				font-weight: 400;
				letter-spacing: 0rpx;
				line-height: 40.54rpx;
				color: rgba(128, 128, 128, 1);
			}

			.save {
				box-sizing: border-box;
				z-index: 999999999;
				position: absolute;
				right: 120rpx;
				bottom: 32rpx;
				font-size: 28rpx;
				font-weight: 400;
				letter-spacing: 0rpx;
				line-height: 40.54rpx;
				color: rgba(180, 135, 103, 1);
			}

		}



		// 订单状态区域的样式  
		.orderStatus_List {
			margin-top: 40rpx;
			width: calc(100% - 90rpx);
			display: flex;
			justify-content: space-around;
			align-items: center;
			overflow-x: hidden;

			.orderItem {
				box-sizing: border-box;
				display: flex;
				justify-content: center;
				flex-direction: column;
				align-items: center;
				padding: 20rpx 0;

				.iconContent {
					box-sizing: border-box;
					width: 78rpx;
					height: 78rpx;


				}

				.item1 {
					background: url('https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/user_icon_all%20orders_default%404x.png');
					background-size: cover;
				}

				.item2 {
					background: url('https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/user_icon_histy%20orders_default%404x.png');
					background-size: cover;

				}

				.item3 {
					background: url('https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/user_icon_%20take_default%404x.png');
					background-size: cover;
				}

				.item4 {
					background: url('https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/user_icon_%20received_default%404x.png');
					background-size: cover;
				}

				.text {
					margin-right: 10rpx;
					margin-top: 20rpx;

					display: flex;
					justify-content: center;
					align-items: center;
					text-align: center;
					font-size: 28rpx;
					margin-left: 20rpx;
				}
			}
		}

		// 服务商状态板块的样式  
		.service_content {
			box-sizing: border-box;
			margin-top: 25rpx;
			padding: 0 28rpx;
			width: 100%;
			overflow-x: hidden;


			// 添加你需要的样式属性...  
			.status_1 {
				position: relative;
				box-sizing: border-box;
				width: 694rpx;
				height: 248rpx;
				background: url('https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/user_banner_card_default%404x.png');
				background-size: cover;

				.toBe {
					// 这里添加.toBe的样式规则  
					box-sizing: border-box;
					height: 58rpx;
					left: 54rpx;
					top: 34rpx;
					position: absolute;
					font-size: 40rpx;
					font-weight: 700;
					letter-spacing: 0rpx;
					line-height: 57.48rpx;
					color: rgba(253, 246, 230, 1);
				}

				.rightsTitle {
					position: absolute;
					left: 54rpx;
					top: 92rpx;
					font-size: 28rpx;
					font-weight: 400;
					letter-spacing: 0rpx;
					line-height: 40.24rpx;
					color: rgba(237, 222, 187, 1);
					text-align: justify;
					width: 364rpx;
				}

				.rightsDetail {
					position: absolute;
					left: 54rpx;
					top: 164rpx;
					font-size: 24rpx;
					font-weight: 400;
					letter-spacing: 0rpx;
					line-height: 34.76rpx;
					color: rgba(56, 56, 56, 1);
				}

				.goVerify {
					position: absolute;
					top: 58rpx;
					left: 584rpx;
					font-size: 24rpx;
					font-weight: 400;
					letter-spacing: 0rpx;
					line-height: 34.76rpx;
					color: rgba(56, 56, 56, 1);
				}


			}

			.status_3 {
				box-sizing: border-box;
				width: 692rpx;
				height: 246rpx;
				opacity: 1;
				align-items: center;
				justify-content: space-between;
				border-radius: 14rpx;
				display: flex;

				// Sass结构  

				.personStore {
					box-sizing: border-box;

					display: flex;
					width: 332rpx;
					height: 176rpx;
					opacity: 1;
					border-radius: 14rpx;
					background: rgba(255, 255, 255, 1);

					align-items: center;

					.img {
						box-sizing: border-box;
						margin-left: 40rpx;
						width: 92rpx;
						height: 92rpx;
						box-sizing: border-box;
					}

					.item1 {
						background: url('https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/user_icon_warehouse_default%404x.png');
						background-size: cover;
					}



					.Info {
						margin-left: 20rpx;


						.title {
							font-size: 32rpx;
							font-weight: bold;
							color: rgba(72, 176, 114, 1);

						}

						.detail {
							font-size: 26rpx;
							color: gray;
							margin-top: 4rpx;
							color: rgba(128, 128, 128, 1);
						}
					}
				}

				.personComission {
					box-sizing: border-box;

					display: flex;
					align-items: center;
					width: 332rpx;
					height: 176rpx;
					opacity: 1;
					border-radius: 14rpx;
					background: rgba(255, 255, 255, 1);

					.img {
						box-sizing: border-box;
						margin-left: 40rpx;

						width: 92rpx;
						height: 92rpx;
						box-sizing: border-box;
					}

					.item2 {
						background: url('https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/user_icon_commission_default%404x.png');
						background-size: cover;
					}

					.Info {
						margin-left: 20rpx;

						.title {
							font-size: 32rpx;
							font-weight: bold;
							color: rgba(141, 104, 227, 1);

						}

						.detail {
							margin-top: 4rpx;
							font-size: 26rpx;
							color: rgba(128, 128, 128, 1);

						}
					}
				}
			}
		}

		// 导航栏区域的样式  
		.navigatorList {
			overflow-x: hidden;
			box-sizing: border-box;
			margin-top: 30rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: space-between;
			width: 100vw;


			.navigatorItem {

				box-sizing: border-box;
				width: calc(100% - 110rpx);
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-bottom: 44rpx;

				.navInfo {
					display: flex;
					align-items: center;
					flex-direction: row;


					.iconContent {

						box-sizing: border-box;
						width: 40rpx;
						height: 40rpx;

					}

					.item1 {
						background: url('https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/user_icon_friends_default%404x.png');
						background-size: cover
					}

					.item2 {
						background: url('https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/user_icon_history_default%404x.png');
						background-size: cover
					}


					.item3 {
						background: url('https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/user_icon_position_default%404x.png');
						background-size: cover
					}

					.item4 {
						background: url('https://zhinengjiayi.oss-cn-chengdu.aliyuncs.com/my/user_icon_set%20up_default%404x.png');
						background-size: cover
					}

					.desc {
						box-sizing: border-box;
						margin-left: 24rpx;
						height: 40rpx;

					}
				}

				.navArrow {
					padding-right: 0;
					box-sizing: border-box;
					width: 48rpx;
					height: 48rpx;
					text-align: right;


				}
			}


		}


	}

	.container::-webkit-scrollbar {
		display: none;
	}
</style>